package com.briup.cms.service.impl;

import com.briup.cms.bean.Comment;
import com.briup.cms.dao.CommentMapper;
import com.briup.cms.dao.extend.CommentExtendMapper;
import com.briup.cms.exception.CustomerException;
import com.briup.cms.service.ICommentService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 评论服务层
 */
@Service
public class CommentServiceImpl implements ICommentService {
	@Autowired
	private CommentMapper commentMapper;
	@Autowired
	private CommentExtendMapper CommentExtendMapper;

	// 分页查询所有评论
	@Override
	public PageInfo<Comment> pageQuery(int pageNum, int pageSize, String keywords) {

		return null;
	}

	// 通过id删除评论
	@Transactional
	@Override
	public void deleteById(int id) throws CustomerException {

	}

	// 批量删除评论
	@Transactional
	@Override
	public void batchDelete(int[] ids) throws CustomerException {

	}

	// 审核评论，状态：0-待审核，1-不通过，2-通过
	@Transactional
	@Override
	public void checkComment(int id, int status) throws CustomerException {

	}
}

